<?php
class Db_class 
{
		function connection(){
		$myhost="localhost";
		$myuser="root";
		$mypass="";
		$mydb="elearning";	
	     /* Connecting, selecting database */
	     mysql_connect($myhost, $myuser, $mypass)
		 or die("Could not connect : " . mysql_error());
	     /*print "Connected successfully";*/
	     mysql_select_db($mydb) or die("Could not select database");
		}
}
?>